package com.carsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.carsystem.excelutil.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author ykl
 * @since 2021-12-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_member")
public class Member implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "member_id", type = IdType.AUTO)
    private Integer memberId;
    @TableField("member_name")
    @Excel(name = "会员名称", prompt = "会员名称")
    private String memberName;
    @Excel(name = "会员性别", prompt = "会员性别")
    private String sex;
    @Excel(name = "会员身份证", prompt = "会员身份证")
    private String idcard;

    @TableField("phoneNumber")
    @Excel(name = "会员电话", prompt = "会员电话")
    private String phoneNumber;

    @TableField("regTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "会员注册时间", prompt = "会员注册时间")
    private Date regTime;
    @Excel(name = "会员邮箱", prompt = "会员邮箱")
    private String email;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "会员生日", prompt = "会员生日")
    private Date birthday;
    @Excel(name = "会员状态", prompt = "会员状态")
    private String status;
    @TableField("password")
    @Excel(name = "会员名称", prompt = "会员名称")
    private String password;


}
